import {v4 as uuid} from 'uuid'

let id = 0

function createComponent(type = '', iStyle = {}, children = []) {
  let component = {
    id: id++,
    type,
    iStyle,
    children: children
  }
  return component
}

export {
  createComponent
}
